package com.baidu.user.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.baidu.pojo.User;
import com.baidu.user.mapper.UserMapper;


@Service
public class LoginService {
	
		@Autowired
		private UserMapper userMapper;
		private int i=0;
		
		
		
		
		public Boolean loginSelective(User user) {
			List<User> list=userMapper.loginSelective(user);
			if(list.size()>0){
				return true;
			}
			return false;
		}




		
		
}
